package com.fengpb.friday.conductor.dao;

import com.fengpb.friday.conductor.common.metadata.workflow.WorkflowDef;

import java.util.List;

public interface MetadataDAO {

    List<WorkflowDef> getAllWorkflowDef();

    WorkflowDef getWorkflowDef(String name, int version);

    Integer updateWorkflowDef(WorkflowDef def, int latestVersion, String json_data);

    Integer registerWorkflowDef(WorkflowDef def, int latestVersion, String json_data);
}
